﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using Entity;

namespace IBusinessLogicLayer
{
    public interface IShoppingCartBll:IBaseBll<Cart>
    {
        IEnumerable<Cart> GetCarts(string userId = null);
        bool AddCart(Cart cart);
        bool RmoveFromCart(Cart cart);
        bool EmptyCart(string userId = null);
        int GetCount(string userId = null);
        decimal GetTotal(string userId = null);

        bool SaveCartsFromCookie(string userId);
    }
}
